import axios from 'axios';

export const createDatabase = async (name) => {
    try {
        const response = await axios.post('http://localhost:65520/indices/create', null, {
            params: { name: name }
        });

        return response;
    } catch (error) {
        return {
            status: 1001,
            msg: '创建数据库失败'
        };
    }
}
